package cate.game.train.equip.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBTrain;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "一键合成装备 の 请求")
public class EquipBatchForgeReq implements MsgInput {
    @NoteField(value = "部位")
    public byte pos;
    @Override
    public MsgConfig conf() {
        return MsgIdBTrain.EQUIP_BATCH_FORGE_REQ;
    }

    @Override
    public void execute(GameBody game, ClientContext cc) {
        game.train.equip.batchForgeNormalEquip(cc.getRole(), pos);
    }
}
